package interf2;

class Dog {
	private int x;
	private double y;

	public Dog(int x_in, double y_in) {
		x = x_in;
		y = y_in;
	}

	public int getX() {
		return x;
	}

	public double getY() {
		return y;
	}

	public String toString() {
		return "( " + x + ", " + y + " )";
	}
}

public class Comparing0 {
	public static void main(String[] args) {
		Dog a = new Dog(4, 5.0);
		Dog b = new Dog(7, 3.2);

		System.out.println(" a is " + a);
		System.out.println(" b is " + b);
	}
}